/*
 * PrimariesGenerator.hh
 *
 *  Created on: 13.02.2011
 *      Author: ed
 */

#ifndef PRIMARIESGENERATOR_HH_
#define PRIMARIESGENERATOR_HH_


#include "G4VUserPrimaryGeneratorAction.hh"
#include "globals.hh"
class G4ParticleGun;
class G4Event;
class PrimariesGenerator : public G4VUserPrimaryGeneratorAction
{
public:
	PrimariesGenerator();
	PrimariesGenerator(G4int NParticlesPerEvent);
	virtual ~PrimariesGenerator();
	void GeneratePrimaries(G4Event*);
	void SetOptPhotonPolar();
	void SetOptPhotonPolar(G4double);
	static G4int GetNParticlesPerEvent(){return particlesPerEvent;}
	static G4double GetPhotonEnergy(){return photonEnergy;}
private:
	static G4int particlesPerEvent;
	static G4double photonEnergy;
	G4ParticleGun* particleGun;
};
#endif /* PRIMARIESGENERATOR_HH_ */
